import { get, post } from "../../utils/request";

export default {
  fetchTop4Count: () =>
    Promise.all([
      post("mgt/statistics/datasource", {}),
      post("mgt/statistics/msg", {})
    ]),
  // 部门
  fetchDepList: param => get("mgt/4A/list/subDept", param),
  // 推送统计柱状图
  fetchPushDaily: param => post("mgt/statistics/msg/daily", param),
  fetchPushMonthly: param => post("mgt/statistics/msg/monthly", param),
  // 推送场景排名
  fetchSceneRank: param => post("mgt/statistics/scene/rank", param),
  // 推送计划排名
  fetchPlanRank: param => post("mgt/statistics/plan/rank", param)
};
